From: Jyrki Gadinger Date: Tue, 25 Feb 2025 08:39:33 +0000 (+0100) Subject: do not display encrypt action for external folders X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~28^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=a292cd3903b1cc59bbd05bbc02dd4ea2d5eeea46;p=nextcloud-desktop.git do not display encrypt action for external folders Signed-off-by: Jyrki Gadinger --- diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index 98517452f..5d352bdba 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -601,8 +601,9 @@ void AccountSettings::slotSubfolderContextMenuRequested(const QModelIndex& index const auto isEncrypted = info->isEncrypted(); const auto isParentEncrypted = _model->isAnyAncestorEncrypted(index); const auto isTopFolder = index.parent().isValid() && !index.parent().parent().isValid(); + const auto isExternal = info->_isExternal; - if (!isEncrypted && !isParentEncrypted && isTopFolder) { + if (!isEncrypted && !isParentEncrypted && !isExternal && isTopFolder) { ac = menu.addAction(tr("Encrypt")); connect(ac, &QAction::triggered, [this, info] { slotMarkSubfolderEncrypted(info); }); } else {